package cn.edu.ujn.lishlab3.service;

import java.util.List;

import cn.edu.ujn.lishlab3.dao.Customer;
import cn.edu.ujn.util.Page;

public interface ICustomerService {
	
	int deleteByPrimaryKey(Integer custId);

    int insert(Customer row);

    int insertSelective(Customer row);

    Customer selectByPrimaryKey(Integer custId);

    int updateByPrimaryKeySelective(Customer row);

    int updateByPrimaryKey(Customer row);
    //客户列表
    public List<Customer> selectCustomerList(Customer customer);
    //客户数
    public Integer selectCustomerListCount(Customer customer);
	
	//查询客户列表
	public Page<Customer>findCustomer(Integer page,Integer rows, 
            String custName,String custSource,
            String custIndustry,String custLevel);
	
	public int createCustomer(Customer customer);
	
	// 通过id查询客户
	public Customer getCustomerById(Integer id);
	
	// 更新客户
	public int updateCustomer(Customer customer);

	// 删除客户
	public int deleteCustomer(Integer id);
	// 删除客户

}
